package com.hanmei.lion.service.impl;

import java.io.Console;

import com.hanmei.lion.dao.UserInfoDAO;
import com.hanmei.lion.model.UserInfo;
import com.hanmei.lion.service.UserInfoService;

public class UserInfoServiceImpl implements UserInfoService {

	private UserInfoDAO userInfoDAO;
	
	public UserInfoDAO getUserInfoDAO() {
		return userInfoDAO;
	}

	public void setUserInfoDAO(UserInfoDAO userInfoDAO) {
		this.userInfoDAO = userInfoDAO;
	}
	
	@Override
	public void save(UserInfo userInfo){
		this.userInfoDAO.save(userInfo);
		userInfo.setAccount("risesun");
		int i = 1/0;
		this.userInfoDAO.save(userInfo);
	}
}
